package com.qianxp.designparttern.strategy;

/**
 * @author qianxp
 * @createTime 2019/11/17 0017
 */
public enum PayTypeEnum {
    ALI_PAY(new AliPay()),
    JD_PAY(new JdPay()),
    YL_PAY(new YlPay());

    private Pay pay;
    PayTypeEnum(Pay pay){
        this.pay = pay;
    }

    public Pay get(){
        return this.pay;
    }

}
